.search-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f5f5;
}

/* 头部样式 */
.search-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
  border-radius: 50%;
  transition: background-color 0.2s;
  color: #333;
}

.back-btn:hover {
  background-color: #f0f0f0;
}

.search-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

/* 搜索框样式 */
.search-input-container {
  padding: 16px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
}

.search-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #007bff;
}

.search-btn {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.search-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.search-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 搜索结果样式 */
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}

.search-error {
  padding: 20px;
  text-align: center;
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin: 16px 0;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-results-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 8px;
}

.no-results-hint {
  font-size: 14px;
  color: #999;
}

.results-list {
  padding: 16px 0;
}

.results-header {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  padding: 0 4px;
}

.result-item {
  background-color: white;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 1px solid #e0e0e0;
}

.result-item:hover {
  background-color: #f8f9fa;
}

.result-message {
  margin-bottom: 8px;
}

.message-text {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
}

.message-type {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.search-highlight {
  background-color: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.result-sender {
  font-weight: 500;
}

.result-time {
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .search-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .search-btn {
    width: 100%;
  }

  .search-header {
    padding: 8px 12px;
  }

  .search-input-container {
    padding: 12px;
  }
}
